package fun.ipconfig.shopping.configure.exception;

import fun.ipconfig.shopping.entity.Result;
import lombok.Getter;

/**
 * @author gtl
 */
@Getter
public class ResultException extends RuntimeException{
    Result result;
    public ResultException(Result result){
        super(result.getMsg());
        this.result = result;
    }
    public ResultException(){
        result = new Result();
    }
    public ResultException setMsg(String msg){
        result.setMsg(msg);
        return this;
    }
    public ResultException setStatus(Integer status){
        result.setStatus(status);
        return this;
    }
}
